#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QCursor cursor(Qt::WaitCursor);
    ui->pushButton->setCursor(cursor);
    ui->pushButton->setText("等待");
    //自定义光标形状
    //访问图片文件
    QPixmap pixmap(":/tu.png");
    //构造光标对象
    QCursor cursor1(pixmap);
    ui->pushButton_2->setCursor(cursor1);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{

}

void Widget::on_pushButton_2_clicked()
{

}
